package com.feature.shop.user.converter;

import java.util.List;

import org.mapstruct.Mapper;
import com.feature.core.config.MapstructTypeConvert;

import com.feature.shop.user.api.request.ShopAuthListRequest;
import com.feature.shop.user.api.request.ShopAuthPageRequest;
import com.feature.shop.user.api.vo.ShopAuthVo;
import com.feature.shop.user.model.query.ShopAuthQuery;
import com.feature.shop.user.model.entity.ShopAuthEntity;

/***
 * 权限表Converter
 */
@Mapper(uses = MapstructTypeConvert.class)
public interface ShopAuthConverter {

    ShopAuthVo entityToVO(ShopAuthEntity entity);

    List<ShopAuthVo> entityListToVO(List<ShopAuthEntity> list);

    ShopAuthQuery pageRequestToQuery(ShopAuthPageRequest request);

    ShopAuthQuery listRequestToQuery(ShopAuthListRequest request);

}
